<template>
    <div id="app">
        <section class="content">
            <keep-alive exclude="Search">
                <router-view/>
            </keep-alive>
            <FooterGuide v-show="$route.meta.footGuide"></FooterGuide>
        </section>

    </div>
</template>

<script>
    import FooterGuide from "@/components/FooterGuide/FooterGuide";

    export default {
        name: 'App',
        components: {
            FooterGuide
        },
        mounted() {
            this.$store.dispatch('getAddress')
            this.$cookies.config('7d')
            let token = this.$cookies.get('user_token')
            if (token) {
                this.$store.dispatch('saveToken', token)
            }
        },
    }
</script>

<style scoped lang="stylus" rel="stylesheet/stylus">
    @import "common/stylus/minix.styl"
    #app
        width 100%
        height 100%
        background white
        position relative
</style>
